package com.samge.fandroid

import android.content.Intent
import android.os.Bundle
import android.widget.Button
import android.widget.TextView

class BActivity : BaseActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContentView(R.layout.activity_main)
        findViewById<TextView>(R.id.hello)?.text = this.localClassName
        findViewById<Button>(R.id.btn)?.setOnClickListener {
            val intent = Intent()
            intent.setClass(this, CActivity::class.java)
            this.startActivity(intent)
        }

    }
}